<#include "/view/common/command/para.html">
<div id="TaskQuery">
<div class="zs-ibox">
  <input type="button" value="新建" class="zs-btn" ng-click="onCreateClick()" style="float: right;position: absolute;right: 0;">
         <table class="zs-form-tab" width="100%">
            <tbody>
            <tr>
             <td style="width:50px">站点</td>
             <td> 
                <ul  class="zs-data-sizer" id="pointName" style="float:left">
                  <li ng-click="getPointName('-1')" orgid="-1" class="selected"><a href="#" >全部</a></li>
                  <li ng-click="getPointName('0')" orgid="0" ><a href="#" >{{selectedModel.STATION_NAME}}</a></li>
	             </ul>
               </td>
             </tr>
            </tbody>
        </table>
        <table  class="zs-form-tab" width="100%">
         <tbody>
             <tr>
              <td style="width:50px">时间</td>
              <td>
               &nbsp;
              <label>起始日期</label>
              <ag-Datebox class="zs-input" show-curday="true" add-days="-5" ng-change="checkErr();"
						ng-model="queryParams.start" ></ag-Datebox>
						&nbsp;
			   <label>结束日期</label>
			   &nbsp;
			   <ag-Datebox class="zs-input" show-curday="true" ng-change="checkErr();"
						ng-model="queryParams.end" ></ag-Datebox>
				<input type="button" value="查询" class="zs-btn" ng-click="queryPowerOutage()"> 
              </td>
             </tr>
         </tbody>
        </table>
</div>
<div class="zs-ibox" ng-style="{'overflow':'auto',height:(Map_H-80)+'px',width:(Map_W)+'px'}">
     <table class="zs-data-tab" width="100%">
			<thead>
				<tr>
					<th class="head">序号</th>
					<th class="head">站点名称</th>
					<th class="head">停电开始时间</th>
					<th class="head">停电结束时间</th>
					<th class="head">备注</th>
					<th class="head">操作</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="curRow in powerOutageList"
					class="{{ isDoubleNum($index) ? 'even':'' }}">
					<td class="center"><label ng-bind="$index+1"></label></td>
					<td class="center"><label ng-bind="curRow.STATION_NAME"></label></td>
					<td class="center"><label ng-bind="curRow.NO_POWER_START_TIME"></label></td>
					<td class="center"><label ng-bind="curRow.NO_POWER_END_TIME"></label></td>
					<td class="center"><label ng-bind="curRow.MARK"></label></td>
					<td class="center">
						<a ng-click="onEditClick(curRow)">修改</a>&nbsp;
						<a ng-click="deletePowerOutage(curRow)">删除</a>
					</td>
				</tr>
			</tbody>
		</table>
    
   </div>
 </div>
 
<div com-dialog width="800" height="248" title="基本信息" ng-model="createDialog" >
	<#include "${viewDir}/WasteWater/powerOutage/create.html">
</div>
<div com-dialog width="800" height="248" title="基本信息" ng-model="editDialog" >
	<#include "${viewDir}/WasteWater/powerOutage/edit.html">
</div>
<div com-dialog width="400" height="140" title="基本信息" ng-model="uploadDialog" >
	<#include "${viewDir}/WasteWater/powerOutage/upload.html">
</div>